package com.king.builder.demo02;

public class Test {
    public static void main(String[] args) {
        Worker worker = new Worker();
        //链式编程
        Product product = worker
                .buildA("quanjiatong")
                .buildB("xuebi")
                .getProduct();


        System.out.println(product);
    }
}
